/*
* jiyan
*/
package com.jiyan.scene.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;

import com.jiyan.scene.entity.Scene;

/**
 * 场景 api请求熔断器
 * @author jiyan
 */
@FeignClient(value = "jiyan2-provider", fallback = SceneFeignApiImpl.class)
public interface SceneFeignApi {
    /**
     * 查询Scene一个详情信息
     * @param id 
     * @param code 编码
     * @return Scene
     */
    @GetMapping(value = "/scene/load")
    Scene load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 根据条件id查询Scene一个详情信息
     *
     * @param id 
     * @return Scene
     */
    @GetMapping(value = "/scene/load/id/{id}")
    Scene loadById(@RequestParam("id") java.lang.Long id);


    /**
     * 根据条件code查询Scene一个详情信息
     *
     * @param code 编码
     * @return Scene
     */
    @GetMapping(value = "/scene/load/code/{code}")
    Scene loadByCode(@RequestParam("code") java.lang.String code);

    /**
     * 删除Scene
     *
     */
    @DeleteMapping("/scene/delete")
    void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 查询Scene信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/scene/list")
    List<Scene> list(@RequestBody Scene scene,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);


    /**
     * 查询Scene信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/scene/list/by")
    List<Scene> listByPk(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);




    /**
    * 统计Scene信息数量根据主键
    *
    * @return 总条数
    */
    @GetMapping(value = "/scene/count/by")
    Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);

    /**
    * 统计Scene信息数量
    *
    * @return 总条数
    */
    @PostMapping(value = "/scene/count")
    Integer count(@RequestBody Scene scene);



    /**
     * 创建Scene
     *
     * @return Scene
     */
    @PostMapping("/scene/build")
    Scene build(@RequestBody Scene scene);


    /**
     * 修改Scene
     *
     * @return Scene
     */
    @PutMapping("/scene/modify")
    Scene modify(@RequestBody Scene scene);



}
